#coding:utf-8

caidan = ["番茄炒蛋","蹦蹦鸡","买了一只鸡","咸水鸭"]
#没办打印序号
# for l in caidan:
#     print(l)

for num in range(len(caidan)):
    print("{}--{}".format(num+1,caidan[num]))
while True:
    xuhao =input("请输入菜单序号：")
    if xuhao.isdigit():
        xuhao =int(xuhao)-1
        if xuhao+1 ==9:
            break
        if xuhao>=0 and xuhao<4:
            print(caidan[xuhao])
        else:
            print("没有这个菜的序号！")

    else:
        print("您输入不合法！")

